package com.ruoyi.wb.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wb.mapper.WbClassifyContentMapper;
import com.ruoyi.wb.domain.WbClassifyContent;
import com.ruoyi.wb.service.IWbClassifyContentService;

/**
 * 维保类目明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class WbClassifyContentServiceImpl implements IWbClassifyContentService 
{
    @Autowired
    private WbClassifyContentMapper wbClassifyContentMapper;

    /**
     * 查询维保类目明细
     * 
     * @param id 维保类目明细主键
     * @return 维保类目明细
     */
    @Override
    public WbClassifyContent selectWbClassifyContentById(Long id)
    {
        return wbClassifyContentMapper.selectWbClassifyContentById(id);
    }

    /**
     * 查询维保类目明细列表
     * 
     * @param wbClassifyContent 维保类目明细
     * @return 维保类目明细
     */
    @Override
    public List<WbClassifyContent> selectWbClassifyContentList(WbClassifyContent wbClassifyContent)
    {
        return wbClassifyContentMapper.selectWbClassifyContentList(wbClassifyContent);
    }

    /**
     * 新增维保类目明细
     * 
     * @param wbClassifyContent 维保类目明细
     * @return 结果
     */
    @Override
    public int insertWbClassifyContent(WbClassifyContent wbClassifyContent)
    {
        wbClassifyContent.setCreateTime(DateUtils.getNowDate());
        return wbClassifyContentMapper.insertWbClassifyContent(wbClassifyContent);
    }

    /**
     * 修改维保类目明细
     * 
     * @param wbClassifyContent 维保类目明细
     * @return 结果
     */
    @Override
    public int updateWbClassifyContent(WbClassifyContent wbClassifyContent)
    {
        wbClassifyContent.setUpdateTime(DateUtils.getNowDate());
        return wbClassifyContentMapper.updateWbClassifyContent(wbClassifyContent);
    }

    /**
     * 批量删除维保类目明细
     * 
     * @param ids 需要删除的维保类目明细主键
     * @return 结果
     */
    @Override
    public int deleteWbClassifyContentByIds(Long[] ids)
    {
        return wbClassifyContentMapper.deleteWbClassifyContentByIds(ids);
    }

    /**
     * 删除维保类目明细信息
     * 
     * @param id 维保类目明细主键
     * @return 结果
     */
    @Override
    public int deleteWbClassifyContentById(Long id)
    {
        return wbClassifyContentMapper.deleteWbClassifyContentById(id);
    }
}
